Server Error in '/yonetim' Application.

Could not find file 'C:\inetpub\wwwroot\Ulasim2\yonetim\saatler\uyariUrlresim.png'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not find file 'C:\inetpub\wwwroot\Ulasim2\yonetim\saatler\uyariUrlresim.png'.

Source Error:


Line 84:         {
Line 85:             context.Response.ContentType = GetContentType(strFile);
Line 86:             context.Response.TransmitFile(strFile);
Line 87:             context.Response.End();
Line 88:             return context;

Source File: c:\inetpub\wwwroot\Ulasim2\yonetim\App_Code\SaatYonlendirme.cs    Line: 86

Stack Trace:


[FileNotFoundException: Could not find file 'C:\inetpub\wwwroot\Ulasim2\yonetim\saatler\uyariUrlresim.png'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +1344
   System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +1217
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +123
   System.Web.HttpResponse.TransmitFile(String filename, Int64 offset, Int64 length) +136
   SaatYonlendirme.SaatYonlendirme.SendContentTypeAndFile(HttpContext context, String strFile) in c:\inetpub\wwwroot\Ulasim2\yonetim\App_Code\SaatYonlendirme.cs:86
   SaatYonlendirme.SaatYonlendirme.ProcessRequest(HttpContext context) in c:\inetpub\wwwroot\Ulasim2\yonetim\App_Code\SaatYonlendirme.cs:63
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4092.0